home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3c / byteorder.z / byteorder
Encoding:
Text File  |  2002-10-03  |  2.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. BBBBYYYYTTTTEEEEOOOORRRRDDDDEEEERRRR((((3333NNNN))))                                                    BBBBYYYYTTTTEEEEOOOORRRRDDDDEEEERRRR((((3333NNNN))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      htonl, htons, ntohl, ntohs - convert values between host and network byte
  10.      order
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
  14.      ####iiiinnnncccclllluuuuddddeeee <<<<nnnneeeettttiiiinnnneeeetttt////iiiinnnn....hhhh>>>>
  15.  
  16.      uuuu____lllloooonnnngggg hhhhttttoooonnnnllll((((uuuu____lllloooonnnngggg hhhhoooossssttttlllloooonnnngggg))));;;;
  17.  
  18.      uuuu____sssshhhhoooorrrrtttt hhhhttttoooonnnnssss((((uuuu____sssshhhhoooorrrrtttt hhhhoooossssttttsssshhhhoooorrrrtttt))));;;;
  19.  
  20.      uuuu____lllloooonnnngggg nnnnttttoooohhhhllll((((uuuu____lllloooonnnngggg nnnneeeettttlllloooonnnngggg))));;;;
  21.  
  22.      uuuu____sssshhhhoooorrrrtttt nnnnttttoooohhhhssss((((uuuu____sssshhhhoooorrrrtttt nnnneeeettttsssshhhhoooorrrrtttt))));;;;
  23.  
  24. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  25.      These routines convert 16 and 32 bit quantities between network byte
  26.      order and host byte order.  On machines such as the IRIS-4D series, these
  27.      routines are defined as null macros in the include file <_n_e_t_i_n_e_t/_i_n._h>.
  28.  
  29.      These routines are most often used in conjunction with Internet addresses
  30.      and ports as returned by _g_e_t_h_o_s_t_b_y_n_a_m_e(3N) and _g_e_t_s_e_r_v_e_n_t(3N).
  31.  
  32. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  33.      gethostbyname(3N), getservent(3N)
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.